<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------

return array(
	'__pattern__'    => array(
		'name' => '\w+',
	),

	'/'              => 'index/index/index', // 首页访问路由
	'search'         => 'index/search/index', // 首页访问路由

	'cart/index'     => 'index/cart/index',
	'cart/add'       => 'index/cart/add',
	'cart/count'     => 'index/cart/count',

	'login'          => 'user/login/index',
	'register'       => 'user/login/register',
    'company_data'   => 'user/login/company_data',
    'add_org'        => 'user/login/add_organization',
    'upload_cert'     => 'user/login/upload_cert',
    'upload_dept_file' => 'user/login/upload_dept_file',
    'upload_member_file' => 'user/login/upload_member_file',

    'update_org'     => 'user/login/update_org',
    'update_job'     => 'user/login/update_job',
    'forget_pwd'     => 'user/login/forget_pwd',
    'update_org_pwd' => 'user/login/update_org_pwd',

    'download_dept'     => 'user/login/download_dept',
    'download_member'     => 'user/login/download_member',


    'org_admin'     => 'user/login/org_admin',
    'dept_list'     => 'user/login/dept_list',
    'meet_list'     => 'user/login/meet_list',
    'meet_user_list' => 'user/login/meet_user_list',
    'member_list'     => 'user/login/member_list',
    'join_member_list'     => 'user/login/join_member_list',
    'send_mail' =>  'user/login/send_mail',


    'ajax_delete_user' => 'user/login/ajax_delete_user',

    'add_dept'     => 'user/login/add_dept',
    'add_join_member'     => 'user/login/add_join_member',
    'ajax_add_join_member' => 'user/login/ajax_add_join_member',
    'update_join_member' => 'user/login/update_join_member',
    'info'     => 'user/login/info',
    'push'     => 'user/login/push',
    'push_msg'     => 'user/login/push_msg',


    'update_dept'     => 'user/login/update_dept',
    'ajax_delete_dept' => 'user/login/ajax_delete_dept',

    'ajax_add_dept'     => 'user/login/ajax_add_dept',



    'login_by_phone' => 'user/login/login_by_phone',
    'logout'         => 'user/login/logout',
	'uc'             => 'user/index/index',

	'order/index'    => 'user/order/index',
	'order/list'     => 'user/order/lists',

	'admin/login'    => 'admin/index/login',
	'admin/logout'   => 'admin/index/logout',

	// 变量传入index模块的控制器和操作方法
	'plugs/:mc/:ac' => 'index/addons/execute', // 静态地址和动态地址结合
	'user/plugs/:mc/:ac'  => 'user/addons/execute', // 静态地址和动态地址结合
	'admin/plugs/:mc/:ac' => 'admin/addons/execute', // 静态地址和动态地址结合
);